package com.android.mvp.modle;

import com.android.mvp.base.BaseModel;
import com.android.mvp.bean.HomeBanner;
import com.android.mvp.bean.M_Base;
import com.android.mvp.http.Http;

import java.util.List;

import rx.Observable;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * Created by Administrator on 2016/9/7 0007.
 */
public class HomeModel extends BaseModel {




    public Observable<M_Base<List<HomeBanner>>> getHomeBanner() {
        return Http.getInstance().getGankService().homeBanner(getCache()).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread());
    }





}
